var t = getApp();

Page({
    data: {
        pic: "../../images/20.png",
        canIu: !0,
        img1: "../../images/27.jpg",
        condition: !0,
        Backto: "backtoCover"
    },
    onLoad: function(e) {
        t.GetUrl(), !0 !== wx.canIUse("button.open-type.contact") && this.setData({
            canIu: !1
        }), e.comer && this.setData({
            condition: !1
        }), e.From && this.setData({
            Backto: "backtoIndex"
        });
    },
    callus: function() {
        wx.makePhoneCall({
            phoneNumber: wx.getStorageSync("CsTelphone")
        });
    },
    toReglist: function() {
        wx.redirectTo({
            url: "../reglist/reglist?web=2"
        });
    },
    backtoCover: function() {
        wx.switchTab({
            url: "../MyCover/MyCover"
        });
    },
    backtoIndex: function() {
        wx.switchTab({
            url: "../Draft/Draft"
        });
    },
    onShareAppMessage: function(t) {
        return "button" === t.from && console.log(t), {
            title: "合同助手",
            path: "/pages/InvoiceCter/InvoiceCter?From=Share",
            success: function(t) {},
            fail: function(t) {}
        };
    }
});